import request from '@/utils/request'

// // 查询绩效管理列表
// export function getProjectGoal(projectName) {
//   return request({
//     url: '/performance/assess/getGoal/ '+ projectName,
//     method: 'get',
//   })
// }
// 生成本月绩效
export function addPerformance() {
  return request({
    url: '/performance/selfAssessment/generatePerformance',
    method: 'get',
  })
}
// 查询考核自评详细
export function auditPass(id) {
  return request({
    url: '/performance/selfAssessment/auditPass/' + id,
    method: 'get'
  })
}
// 查询考核模板列表
export function listPerformanceTemplate() {
  return request({
    url: '/performance/performanceTemplate/list',
    method: 'get',
  })
}
// 查询考核自评详细
export function changeAssessState(id) {
  return request({
    url: '/performance/selfAssessment/changeState/' + id,
    method: 'get'
  })
}
// 查询绩效管理列表
export function listAssess() {
  return request({
    url: '/performance/assess/list',
    method: 'get',
  })
}
//查询老师列表
export function listTeacherManagement() {
  return request({
    url: '/teacher/teacherManagement/list',
    method: 'get',
  })
}
// 查询考核自评列表
export function listSelfAssessment(query) {
  return request({
    url: '/performance/selfAssessment/list',
    method: 'get',
    params: query
  })
}

// 查询考核自评详细
export function getSelfAssessment(id) {
  return request({
    url: '/performance/selfAssessment/' + id,
    method: 'get'
  })
}

// 新增考核自评
export function addSelfAssessment(data) {
  return request({
    url: '/performance/selfAssessment',
    method: 'post',
    data: data
  })
}

// 修改考核自评
export function updateSelfAssessment(data) {
  return request({
    url: '/performance/selfAssessment',
    method: 'put',
    data: data
  })
}

// 删除考核自评
export function delSelfAssessment(id) {
  return request({
    url: '/performance/selfAssessment/' + id,
    method: 'delete'
  })
}
